gtkorientableprivate.h \
gtkpango.h \
gtkpathbar.h \
- gtkpopoverprivate.h \
gtkpressandholdprivate.h \
gtkprintoperation-private.h \
gtkprintutils.h \
#include <gdk/gdk.h>
#include <cairo-gobject.h>
#include "gtkpopover.h"
-#include "gtkpopoverprivate.h"
#include "gtktypebuiltins.h"
#include "gtkmain.h"
#include "gtkwindowprivate.h"
gtk_widget_set_has_window (widget, TRUE);
popover->priv = gtk_popover_get_instance_private (popover);
popover->priv->modal = TRUE;
+ popover->priv->apply_shape = TRUE;
}
static void
return popover->priv->modal;
}
-void
-_gtk_popover_set_apply_shape (GtkPopover *popover,
- gboolean apply_shape)
-{
- GtkPopoverPrivate *priv = popover->priv;
-
- g_return_if_fail (GTK_IS_POPOVER (popover));
-
- apply_shape = apply_shape != FALSE;
-
- if (priv->apply_shape == apply_shape)
- return;
-
- priv->apply_shape = apply_shape;
- gtk_popover_update_position (popover);
- gtk_widget_queue_draw (GTK_WIDGET (popover));
-}
-
static void
gtk_popover_tracker_remove_func (gint position,
gpointer user_data)
+++ /dev/null
-/* GTK - The GIMP Toolkit
- * Copyright © 2014 Carlos Garnacho <carlosg@gnome.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __GTK_POPOVER_PRIVATE_H__
-#define __GTK_POPOVER_PRIVATE_H__
-
-#include "gtkpopover.h"
-
-void _gtk_popover_set_apply_shape (GtkPopover *popover,
- gboolean apply_shape);
-
-#endif /* __GTK_POPOVER_PRIVATE_H__ */
#include "gtktypebuiltins.h"
#include "gtkintl.h"
#include "a11y/gtkscalebuttonaccessible.h"
-#include "gtkpopoverprivate.h"
/**
* SECTION:gtkscalebutton
gtk_widget_init_template (GTK_WIDGET (button));
gtk_popover_set_relative_to (GTK_POPOVER (priv->dock), GTK_WIDGET (button));
- /* FIXME: to be removed when compositing over native windows is fixed */
- _gtk_popover_set_apply_shape (GTK_POPOVER (priv->dock), TRUE);
-
/* Need a local reference to the adjustment */
g_object_ref (priv->adjustment);